# Process this file with automake to produce Makefile.in

SUBDIRS = style .

noinst_HEADERS = \
        simplerender.hh \
        simple-icon-view.hh \
	mainWindow.hh \
        ModelColumns.hh \
	prefsWindow_glade.hh \
	prefsWindow.hh \
	UIThreads.hh

pinot_SOURCES = \
        simplerender.cc \
        simple-icon-view.cc \
	pinot.cc \
	mainWindow.cc \
        ModelColumns.cc \
	UIThreads.cc

pinot_prefs_SOURCES = \
        pinot_prefs.cc \
        ModelColumns.cc \
        prefsWindow_glade.cc \
        prefsWindow.cc \
        UIThreads.cc

bin_PROGRAMS = pinot pinot-prefs
pinot_LDFLAGS = \
	-rdynamic

pinot_prefs_LDFLAGS = \
        -rdynamic

pinot_CXXFLAGS = \
            @MISC_CFLAGS@ \
        -I$(top_srcdir)/Utils \
        -I$(top_srcdir)/Tokenize \
        -I$(top_srcdir)/Tokenize/filters \
        -I$(top_srcdir)/SQL \
        -I$(top_srcdir)/Monitor \
        -I$(top_srcdir)/Collect \
        -I$(top_srcdir)/IndexSearch \
        -I$(top_srcdir)/Core \
        -DDEFAULT_CSS_PATH=\"$(datadir)/pinot/style/default.css\"  \
        -DDEFAULT_PNG_PATH=\"$(datadir)/pinot/style\"  \
        @SQL_CFLAGS@ @HTTP_CFLAGS@ @XML_CFLAGS@ @DBUS_CFLAGS@  \
        @INDEX_CFLAGS@ @GTHREAD_CFLAGS@ @GTKMM_CFLAGS@ @CLUTTERGTK_CFLAGS@ @NBTK_CFLAGS@

pinot_prefs_CXXFLAGS = \
            @MISC_CFLAGS@ \
        -I$(top_srcdir)/Utils \
        -I$(top_srcdir)/Tokenize \
        -I$(top_srcdir)/Tokenize/filters \
        -I$(top_srcdir)/SQL \
        -I$(top_srcdir)/Monitor \
        -I$(top_srcdir)/Collect \
        -I$(top_srcdir)/IndexSearch \
        -I$(top_srcdir)/Core \
        -DDEFAULT_CSS_PATH=\"$(datadir)/pinot/style/default.css\"  \
        -DDEFAULT_PNG_PATH=\"$(datadir)/pinot/style\"  \
        @SQL_CFLAGS@ @HTTP_CFLAGS@ @XML_CFLAGS@ @DBUS_CFLAGS@  \
        @INDEX_CFLAGS@ @GTHREAD_CFLAGS@ @GTKMM_CFLAGS@

if HAVE_DBUS
pinot_CXXFLAGS += -DHAVE_DBUS
pinot_prefs_CXXFLAGS += -DHAVE_DBUS
endif


pinot_LDADD = \
	-L$(top_builddir)/Utils \
	-L$(top_builddir)/Tokenize \
	-L$(top_builddir)/SQL \
	-L$(top_builddir)/Monitor \
	-L$(top_builddir)/Collect \
	-L$(top_builddir)/IndexSearch \
	-L$(top_srcdir)/Core \
	-lCore -lIndexSearch -lMonitor -lCollect -lSQL \
	-lTokenize -lBasicUtils -lUtils \
        /usr/lib/libnbtk-1.0.so -lclutter-imcontext-0.1 -lccss-1 -lcroco-0.6 \
        @LIBS@ \
	@GTKMM_LIBS@ @DBUS_LIBS@ @GTHREAD_LIBS@ @XML_LIBS@ \
	@HTTP_LIBS@ @SQL_LIBS@ @MISC_LIBS@ @CLUTTERGTK_LIBS@ 

pinot_prefs_LDADD = \
        -L$(top_builddir)/Utils \
        -L$(top_builddir)/Tokenize \
        -L$(top_builddir)/SQL \
        -L$(top_builddir)/Monitor \
        -L$(top_builddir)/Collect \
        -L$(top_builddir)/IndexSearch \
        -L$(top_srcdir)/Core \
        -lCore -lIndexSearch -lMonitor -lCollect -lSQL \
        -lTokenize -lBasicUtils -lUtils @LIBS@ \
        @GTKMM_LIBS@ @DBUS_LIBS@ @GTHREAD_LIBS@ @XML_LIBS@ \
        @HTTP_LIBS@ @SQL_LIBS@ @MISC_LIBS@

